#include <iostream>
using namespace std;

class Student
{
    public:
        void setId(int id)
        {
            m_id = id;
        }

        int getId()
        {
            return m_id;
        }

        void setName(const std::string& name)
        {
            m_name = name;
        }
        
        const std::string& getName()
        {
            return m_name;
        }

        void display()
        {
            std::cout<<"id="<<m_id<<",name="<<m_name<<std::endl;
        }

    private:
    int m_id;
    std::string m_name;

};
int main()
{
    Student stu;
    stu.setName("大黑");
    stu.setId(12);
    // std::cout<<"id="<<stu.getId()<<",name="<<stu.getName()<<std::endl;
    stu.display();
    return 0;
}